<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../layui/css/layui.css" media="all">
    <script src="../js/jquery-1.9.1.min.js"></script>
    <script src="../js/Placeholder.js"></script>
    <!--<script src="../js/jquery-placeholder.js"></script>-->
    <script src="../layui/layui.js"></script>
    <script src="../layui/layui.all.js"></script>
</head>

<body>
<ul>
    <!---->
    <li><input type="text" placeholder="用户名" onmouseover="javascript:this.click();"></li>
    <li><input type="password" placeholder="密码"></li>
    <li><input type="text" class="layui-input" placeholder="请输入yyMMdd格式" id="date" style="width:200px;"></li>
    <li><input type="button" value="提交"></li>
</ul>

<script type="text/javascript">
    // $('input, textarea').placeholder({customClass:'my-placeholder'});
layui.use(['layer','form'],function(){
    var laydate = layui.laydate;
    laydate.render({
        elem:'#date',
        done:function () {
            $("span").hide();
            console.log(33333333,$("#date").attr('placeholder'))
        }
    })
})
</script>
</body>

</html>